import {
	defineStore
} from 'pinia';

export const useWallListStore = defineStore('wallList', () => {
	const wallTable = ref([]);

	function updateData(data) {
		wallTable.value = data
	}

	function resetData() {
		wallTable.value = []
	}

	return {
		wallTable,
		updateData,
		resetData
	};


}, {
	// 启用持久化
	persist: {
		storage: {
			setItem(key, value) {
				uni.setStorageSync(key, value);
			},
			getItem(key) {
				return uni.getStorageSync(key);
			},
		},
	}
});